#ifndef LOGIN_H
#define LOGIN_H

#include <QWidget>
#include "setip.h"
#include "form_client.h"
#include <QTcpSocket>

namespace Ui {
class login;
}

class login : public QWidget
{
    Q_OBJECT

public:
    explicit login(QWidget *parent = 0);
    setip *s1=NULL; //保持setip地址
    Form_client *client=NULL; //保存form_client地址
    ~login();

signals:
    void sendmyid(QString); //发送id的信号
signals:
    void sendipData(QString); //发送数据ip的信号
signals:
    void sendportData(QString); //发送数据port的信号

private slots:
    void on_btnMin_clicked();

    void on_btnClose_clicked();

    void on_btnset_clicked();

    void on_btnlogin_clicked();

    void receiveripData(QString data);
    void receiverportData(QString data);

private:
    Ui::login *ui;
    QTcpSocket *m_tcp;
};

#endif // LOGIN_H
